import { _decorator, Component, AudioClip, game } from 'cc';
import { SSS_AudioManager } from 'db://assets/Script/Manager/SSS_AudioManager';
const { ccclass, property } = _decorator;

@ccclass('PaoPaoXiGuaAudioManager')
export default class PaoPaoXiGua_AudioManager extends Component {
    @property(AudioClip)
    dropClip: AudioClip | null = null;
    @property(AudioClip)
    leveUpClip: AudioClip | null = null;

    start() {
        game.on('game-ball-drop', () => {
            SSS_AudioManager.Instance.playSFX(this.dropClip, false);
        });

        game.on('game-ball-levelup', () => {
            SSS_AudioManager.Instance.playSFX(this.leveUpClip, false);
        });
    }
    //    // update (dt) {}
}